package com.turing.draw.client.preprocessor;

import com.turing.common.response.ResponseVO;
import com.turing.common.response.model.ResVO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.net.URI;
import java.util.List;

@FeignClient( name = "pre-processor",path = "preprocessor")
public interface PreProcessorClient {

    @PostMapping("removeTasks")
    ResponseVO<Object> removeTasks(@RequestBody List<String> taskSns);

    @PostMapping("taskFailed")
    ResponseVO<Object> taskFailed(@RequestParam("parentTaskSn") String parentTaskSn);

}
